From 3cc1e4c380936841efcf78a502381d376822d88f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 28 Sep 2009 13:59:35 +0100 Subject: [PATCH] xend: Fix save/restore after previous changeset. Platform variable 'tsc_native' is saved/restored as a string, so must be converted to an integer before passing to domain_set_tsc_native(). Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index b38a5fea4b..6848d3b3ee 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2426,7 +2426,7 @@ class XendDomainInfo: # Set TSC mode of domain tsc_native = self.info["platform"].get("tsc_native") if arch.type == "x86" and tsc_native is not None: - xc.domain_set_tsc_native(self.domid, tsc_native) + xc.domain_set_tsc_native(self.domid, int(tsc_native)) # Set timer configuration of domain timer_mode = self.info["platform"].get("timer_mode") -- 2.30.2